﻿using FreeSql.DataAnnotations;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZoneLinePacking.Models {
    [Table(Name = "formuladbconfig")]
    public class FormulaDBConfigModel : BindableBase {
        /// <summary>
        /// ID
        /// </summary>
        [Column(IsIdentity = true)]
        public int ID { get; set; }

        private string _plcIp;
        /// <summary>
        /// PlcIp
        /// </summary>
        public string PlcIp {
            get { return _plcIp; }
            set => SetProperty(ref _plcIp, value);
        }

        private string _formuladPLCUseAddr;
        /// <summary>
        /// 配方PLC使用地址
        /// </summary>
        public string FormuladPLCUseAddr {
            get { return _formuladPLCUseAddr; }
            set => SetProperty(ref _formuladPLCUseAddr, value);
        }

        private string _formuladNumberAddr;
        /// <summary>
        /// 配方序号地址
        /// </summary>
        public string FormuladNumberAddr {
            get { return _formuladNumberAddr; }
            set => SetProperty(ref _formuladNumberAddr, value);
        }

        private string _formuladReduceAddr;
        /// <summary>
        /// 配方减少地址
        /// </summary>
        public string FormuladReduceAddr {
            get { return _formuladReduceAddr; }
            set => SetProperty(ref _formuladReduceAddr, value);
        }

        private string _formuladAddAddr;
        /// <summary>
        /// 配方增加地址
        /// </summary>
        public string FormuladAddAddr {
            get { return _formuladAddAddr; }
            set => SetProperty(ref _formuladAddAddr, value);
        }

        private string _formuladSaveAddr;
        /// <summary>
        /// 配方保存地址
        /// </summary>
        public string FormuladSaveAddr {
            get { return _formuladSaveAddr; }
            set => SetProperty(ref _formuladSaveAddr, value);
        }

        private string _formuladDownloadAddr;
        /// <summary>
        /// 配方下载地址
        /// </summary>
        public string FormuladDownloadAddr {
            get { return _formuladDownloadAddr; }
            set => SetProperty(ref _formuladDownloadAddr, value);
        }

        private DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime {
            get { return _createTime; }
            set => SetProperty(ref _createTime, value);
        }
    }
}
